const http = require("http");
const fs = require("fs");

//读取数据
//
const data = JSON.parse(fs.readFileSync("./info.json", "utf-8"));
let nub = Math.floor(Math.random() * data.length-1);
data[nub].count++;
console.log(data);

// let arr = [1,2,3,4,5,6,7,8,9]
// let nub = Math.floor(Math.random()*arr.length)
// let a = arr[nub]
// arr.splice(nub,1)
// arr[nub-1] = 11
// console.log(nub);
// console.log(arr);
